package com.SmartCare.common.dto.apiLog;

import com.SmartCare.pojo.role.ElderlyInformation;
import com.SmartCare.pojo.role.User;
import lombok.*;
import lombok.experimental.Accessors;
import java.io.Serializable;
import java.time.LocalDate;
import java.util.List;

/**
 * <p>
 * 接口调用日志表
 * </p>
 *
 * @author young
 * @since 2023-10-06
 */

@Data
@EqualsAndHashCode(callSuper = false)
@Accessors(chain = true)
@Builder
@AllArgsConstructor
@NoArgsConstructor
public class ApiLogDTO implements Serializable {

    private static final long serialVersionUID = 1L;

    /**
     * 唯一标识
     */
    private Long id;

    /**
     * 接口名称
     */
    private String apiName;
    /**
     *功能描述
     */
    private String descFunction;
    /**
     * 调用次数
     */
    private Integer times;
    /**
     * 用户
     */
    private User user;
    /**
     * 养老院名称
     */
    private String chName;
    /**
     * 创建日期
     */
    private LocalDate createDate;
    /**
     * 家属对应的老人列表
     */
    private List<ElderlyInformation> elders;
    /**
     * 模块名
     */
    private String module;

}
